def success(data=None, message="操作成功"):
    return {
        "code": 200,
        "message": message,
        "data": data
    }

def error(message="操作失败", code=400):
    return {
        "code": code,
        "message": message,
        "data": None
    }